package net.gyapp.markim.core.reponse;

import org.jim.common.packets.Command;

/**
 * Auther:  winds
 * Email:   heardown@163.com
 * Date:    2018/7/18.
 * Desc:
 */

public class JoinGroupResponse extends ImResponse{

    public int command;
    public DataBean data;

    @Override
   public Command getCommand() {
        return Command.valueOf(command);
    }

    public static class DataBean {
        public String group;
        public UserBean user;

        public static class UserBean {
            public String id;
            public String nick;

            @Override
            public String toString() {
                return "UserBean{" +
                        "id='" + id + '\'' +
                        ", nick='" + nick + '\'' +
                        '}';
            }
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "group='" + group + '\'' +
                    ", user=" + user +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "JoinGroupResponse{" +
                "command=" + command +
                ", data=" + data +
                '}';
    }
}
